<!-- 消费优惠策略 -->
<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '查询档口评价',
          contents: [
            '如下图所示，选择档口点击查询按钮，即可查询档口评价。'
          ],
          urls: [
            '/static/imgs/others/other_5.png'
          ]
        }, {
          title: '修改档口评价',
          contents: [
            '点击其它进入档口评价的页面，如下图所示，点击修改，',
            '弹出编辑评价对话框，如下图所示，修改之后点击提交，即可修改评价'
          ],
          urls: [
            '/static/imgs/others/other_6.png',
            '/static/imgs/others/other_7.png'
          ]
        }, {
          title: '删除档口评价',
          contents: [
            '点击其它进入单品评价的页面，如下图所示，点击删除',
            '弹出确认删除对话框，点击确定即可删除。'
          ],
          urls: [
            '/static/imgs/others/other_8.png',
            '/static/imgs/others/other_9.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
